<table class="form-table">
	<tbody>
		<tr valign="top">
			<th scope="row">
				<?php esc_html_e('Background Image', 'echotheme') ?>
			</th>
			<td>
				<div style="padding:0; float:left;">
		            <label for="<?php echo $section ?>_background-image"><?php esc_html_e('Enter a URL or upload an image:', 'echotheme'); ?></label><br />
		            <input name="echotheme_options[<?php echo $section ?>][background-image]" type="text" id="<?php echo $section; ?>_background-image" value="<?php if($options[$section]['background-image']) {echo $options[$section]['background-image']; } ?>" size="65" />
		            <input id="upload_<?php echo $section ?>_background-image_button" type="button" value="<?php esc_attr_e('Upload Image', 'echotheme'); ?>" class="button-secondary" />
		        </div>

		        <div class="clear"></div>
			</td>
		</tr>
		<tr valign="top">
			<th scope="row">
				<?php esc_html_e('Image Position', 'echotheme') ?>
			</th>
			<td>
		        <div style="margin:10px 10px 2px 0; float:left;">
		            <?php esc_html_e('Repeat:', 'echotheme'); ?>
		            <select name="echotheme_options[<?php echo $section ?>][background-repeat]" id="<?php echo $section ?>_background-repeat">
						<option value=""<?php echo ($options[$section]['background-repeat'] == '') ? ' selected="selected"' : ''; ?>><?php esc_attr_e('Null', 'echotheme'); ?></option>
		                <option value="no-repeat"<?php echo ($options[$section]['background-repeat'] == 'no-repeat') ? ' selected="selected"' : ''; ?>><?php esc_attr_e('No Repeat', 'echotheme'); ?></option>
		                <option value="repeat-x"<?php echo ($options[$section]['background-repeat'] == 'repeat-x') ? ' selected="selected"' : ''; ?>><?php esc_attr_e('Repeat X', 'echotheme'); ?></option>
		                <option value="repeat-y"<?php echo ($options[$section]['background-repeat'] == 'repeat-y') ? ' selected="selected"' : ''; ?>><?php esc_attr_e('Repeat Y', 'echotheme'); ?></option>
		                <option value="repeat"<?php echo ($options[$section]['background-repeat'] == 'repeat') ? ' selected="selected"' : ''; ?> style="padding-right:10px;"><?php esc_attr_e('Repeat Both', 'echotheme'); ?></option>
		            </select>


		            <?php esc_html_e('Horizontal:', 'echotheme'); ?>
		            <select name="echotheme_options[<?php echo $section ?>][background-position][0]" id="<?php echo $section ?>_background-position_horizontal">
		                <option value="left"<?php echo ($options[$section]['background-position'][0] == 'left') ? ' selected="selected"' : ''; ?>><?php esc_attr_e('left', 'echotheme'); ?></option>
		                <option value="right"<?php echo ($options[$section]['background-position'][0] == 'right') ? ' selected="selected"' : ''; ?>><?php esc_attr_e('right', 'echotheme'); ?></option>
		                <option value="center"<?php echo ($options[$section]['background-position'][0] == 'center') ? ' selected="selected"' : ''; ?> style="padding-right:10px;"><?php esc_attr_e('center', 'echotheme'); ?></option>
		            </select>


		            <?php esc_html_e('Vertical:', 'echotheme'); ?>
		            <select name="echotheme_options[<?php echo $section ?>][background-position][1]" id="<?php echo $section ?>_background-position_vertical">
		                <option value="top"<?php echo ($options[$section]['background-position'][1] == 'top') ? ' selected="selected"' : ''; ?>><?php esc_attr_e('top', 'echotheme'); ?></option>
		                <option value="center"<?php echo ($options[$section]['background-position'][1]  == 'center') ? ' selected="selected"' : ''; ?>><?php esc_attr_e('center', 'echotheme'); ?></option>
		                <option value="bottom"<?php echo ($options[$section]['background-position'][1]  == 'bottom') ? ' selected="selected"' : ''; ?> style="padding-right:10px;"><?php esc_attr_e('bottom', 'echotheme'); ?></option>
		            </select>
			
		        </div>

				<div class="clear"></div>
			</td>
		</tr>
	</tbody>
</table>